@tailwind base;
@tailwind components;
@tailwind utilities;

body {
    -webkit-user-select: none;
    margin: 0px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;

    &.body-focus {
        .tools {
            opacity: 1;
        }

        .drag-area {
            display: block;
        }
    }
}

.drag-area {
    -webkit-app-region: drag;
    position: fixed;
    top: 30px;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 999;
    display: none;
}

.body-hover:hover {
    opacity: 0.8;
}

img#preview {
    width: 100vw;
    height: auto;
    overflow: hidden !important;
}

.tools {
    position: fixed;
    right: 0;
    top: 0;
    z-index: 999;
    //background-color: rgba(0, 0, 0, 0.5);
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    left: 0;
    text-align: right;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding: 5px;
    display: flex;
    align-items: center;

    .item-space {
        flex-grow: 1;
    }

    .item {
        width: 20px;
        height: 20px;
        line-height: 20px;
        text-align: center;
        margin-left: 10px;
        color: #FFFFFF;
        margin-left: 10px;
        flex-shrink: 0;
        outline: none;

        &.btn {
            border-radius: 50%;

            &:hover {
                background: #FFF;
                color: #111;
            }
        }

        &.wide {
            width: auto;
        }

        &.active {
            color: #FF0000;

            &:hover {
                color: #FF0000;
            }
        }
    }
}

.arco-slider-bar {
    background-color: #111111 !important;
}

.arco-slider-btn::after {
    border-color: #111111 !important;
}
